import request from '@/utils/request'

// 获取员工简单列表
export const reqGetEmployeeSimple = () => {
  return request({
    method: 'get',
    url: '/sys/user/simple'
  })
}

// 获取员工完整列表
export const reqGetEmployeeList = (page, size) => {
  return request({
    method: 'get',
    url: '/sys/user',
    params: {
      page, size
    }
  })
}

// 删除员工 ()
export function reqDelEmployee(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}

// 新增员工
export const reqAddEmployee = (data) => {
  return request({
    method: 'post',
    url: '/sys/user',
    data
  })
}

// 批量上传员工,data要求为数组
export const reqImportEmployee = (data) => {
  return request({
    method: 'post',
    url: '/sys/user/batch',
    data
  })
}
